package com.uls.ycl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.uls.ycl.mapper.RepairAreaMapper;
import com.uls.ycl.domain.RepairArea;
import com.uls.ycl.service.IRepairAreaService;

/**
 * 报修区域Service业务层处理
 * 
 * @author ycl
 * @date 2024-11-06
 */
@Service
public class RepairAreaServiceImpl implements IRepairAreaService 
{
    @Autowired
    private RepairAreaMapper repairAreaMapper;

    /**
     * 查询报修区域
     * 
     * @param areaId 报修区域主键
     * @return 报修区域
     */
    @Override
    public RepairArea selectRepairAreaByAreaId(Long areaId)
    {
        return repairAreaMapper.selectRepairAreaByAreaId(areaId);
    }

    /**
     * 查询报修区域列表
     * 
     * @param repairArea 报修区域
     * @return 报修区域
     */
    @Override
    public List<RepairArea> selectRepairAreaList(RepairArea repairArea)
    {
        return repairAreaMapper.selectRepairAreaList(repairArea);
    }

    /**
     * 新增报修区域
     * 
     * @param repairArea 报修区域
     * @return 结果
     */
    @Override
    public int insertRepairArea(RepairArea repairArea)
    {
        return repairAreaMapper.insertRepairArea(repairArea);
    }

    /**
     * 修改报修区域
     * 
     * @param repairArea 报修区域
     * @return 结果
     */
    @Override
    public int updateRepairArea(RepairArea repairArea)
    {
        return repairAreaMapper.updateRepairArea(repairArea);
    }

    /**
     * 批量删除报修区域
     * 
     * @param areaIds 需要删除的报修区域主键
     * @return 结果
     */
    @Override
    public int deleteRepairAreaByAreaIds(Long[] areaIds)
    {
        return repairAreaMapper.deleteRepairAreaByAreaIds(areaIds);
    }

    /**
     * 删除报修区域信息
     * 
     * @param areaId 报修区域主键
     * @return 结果
     */
    @Override
    public int deleteRepairAreaByAreaId(Long areaId)
    {
        return repairAreaMapper.deleteRepairAreaByAreaId(areaId);
    }
}
